package cn.kust.microtourismcommon.remote;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "service-oss", path = "/Oss/fileOss")

@Component
public interface ServiceOssClient {

    @RequestMapping(method= RequestMethod.POST, value = "/one", consumes = "multipart/form-data")
    String uploadOssFile(@RequestBody MultipartFile file);

    @RequestMapping(method = RequestMethod.POST, value = "/more", consumes = "multipart/form-data")
    String[] uploadOssFile(MultipartFile[] file);



}
